<!DOCTYPE html>
<html>
	<head>
		<title></title>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
		<link rel="stylesheet" href="../res/css/weui.css"/>
		<link rel="stylesheet" href="../res/css/weuix.css"/>
		<link rel="stylesheet" href="../res//css/common.css">
		<link rel="stylesheet" href="../res/css/swiper.css">
		<script src="../res/js/zepto.min.js"></script>
		<script src="../res/js/zepto.weui.js"></script>
		<script src="../res/js/common.js?v=1"></script>
		<script src="../res/js/swiper.js"></script>
		<style type="text/css">
			.title >view:last-child {
			    font-size: 18px;
			    margin-top: 15px;
			    position: relative;
			    line-height:20px
			}
			.type_img {
				text-align: center;
				margin: 0 auto;
				width: 180px;
			}
			#btnBuyOrder{
			    border-radius: 10px;
			    background: #1189ff;
			    color: #ffffff;
			}
			.part{
			    border-radius: 10px;
			    background: #ffffff;
			    margin: 0 10px 10px;
			  }
			.viewlist {
			    margin: 0 15px;
			    padding: 15px 0;
			    display: flex;
			    align-items: center;
			    justify-content: space-between;
			    border-bottom: 1px solid #e0e0e0;
			}
			.viewlist:last-child {
			    border-bottom: 0px solid #e0e0e0;
			}
			.tips {
			    padding-left: 15px;
			}
			.tips >span {
			    color: red;
			}
		</style>
		<script type="text/javascript">
			var doctorId = 0, inquiryType = 0,doctorName='',feePay = 0,h5token='',userid = '',usertype='';
			$(function () {
				doctorId = getQst("doctor_id");
				inquiryType = getQst('log_type');
				doctorName = getQst('doctor_name');
				feePay = getQst('feepay');
				//ios跳转用h5token
				userJson = getUserInfo();
				h5token = userJson.h5Token
				userid = userJson.id;
				usertype = userJson.type;
				setPhoto()
				// 后退    
				$('#btnBack').on('click', function () {
					goPage('inquiry_doctor_index.htm');
				})
			})
			
			function setPhoto(){
				var data1='',data2='';
				$('.doc_Name').html(doctorName);
				$('.pay_fee').html('￥'+feePay/100);
				if(inquiryType==1){
					//视频
					$('.log_type').html('视频问诊');
				}else{
					//图文
					$('.log_type').html('图文问诊');
				}
			}
			
			function toWrite(){
				strGoUrl = 'inquiry_doctor_patient.htm?doctor_id=' + doctorId + '&doctor_name=' + doctorName + '&log_type=' + inquiryType + '&h5_token='+h5token + '&user_id=' + userid + '&user_type=' + usertype;
				goPage(strGoUrl);
			}
		</script>
	</head>
	<body ontouchstart>
	    <div class="fix-top" style="z-index: 100;">
	        <div class="weui-btn_primary weui-header"> 
	            <div class="weui-header-left"><a id="btnBack" class="icon icon-109"></a></div>
	            <h1 class="weui-header-title">付费成功</h1>
	            <div class="weui-header-right"></div> 
	        </div>
	    </div>
		<div class="part" style="margin-top: 10px;padding-bottom: 10px;">
			<div class="viewlist" style="border-bottom:0px;">
				<!-- <div class="title">
					<div>您当前问诊类型是</div>
					<div><div class="blueBlock"></div>图文问诊</div>
				</div> -->
				<div class="type_img">
					<img class="" src="../res/images/img_purchase_successful.png" mode="widthFix" lazy-load="false" binderror="" bindload=""></img>
				</div>
			</div>
			<div style="margin: 15px 30px;" >
				<a id="btnBuyOrder" onclick="toWrite()" href="javascript:;" class="weui-btn weui-btn_primary" style="font-size:16px;">开始问诊</a>
			</div>
		</div>
		<div class="part">
			<div class="viewlist">
				<div class="left_title">问诊类型</div>
				<div class="log_type">{{name}}</div>
			</div>
			<div class="viewlist">
				<div class="left_title">问诊医生</div>
				<div class="doc_Name">{{name}}</div>
			</div>
			<div class="viewlist">
				<div class="left_title">费用类别</div>
				<div>诊查费</div>
			</div>
			<div class="viewlist">
				<div class="left_title">费用金额</div>
				<div class="pay_fee">￥7</div>
			</div>
		</div>
		<div class="tips"><span>*</span> 温馨提示：当天问诊有效，一次只能问诊同一医生</div>
	</body>
</html>
